﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master" Inherits="System.Web.Mvc.ViewPage<estudent.Models.SObcine>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="InnerRightContent" runat="server">

    <h1>Urejanje vnosa</h1>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Polja</legend>
            
            <div class="editor-label">
                <%: Html.Label("Šifra pošte")%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.sObcina) %>
                <%: Html.ValidationMessageFor(model => model.sObcina, "Vnešena vrednost je neveljavna. Vnesti morate unikatno do tri mestno številko!")%>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Ime občine")%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.imeObcina) %>
                <%: Html.ValidationMessageFor(model => model.imeObcina, "Polje je obvezno.")%>
            </div>

            
            <p>
                <input type="submit" value="Shrani" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JQueryContent" runat="server">
</asp:Content>

